<%-- 
    Document   : registrati
    Created on : 26-nov-2013, 15.16.46
    Author     : Salvo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="style-general.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="./js/validateReg.js"></script>
        <title>Registrazione</title>
    </head>
        <body>
        <%--load the menu bar--%>
        <div id="content-contact">
            <%@ include file="menuBar.jsp" %>
            <div id="central">
                <form id='registrati' action='Controller' onsubmit="return validation();" method='post' accept-charset='UTF-8'>
                <input type='hidden' name='submitted' id='submitted' value='1'/>
                <table style="margin-left: 180px; text-align: left" >
                    <tr><td>
                            <font size="6" face="Vladimir Script">Registrazione</font>
                    </td></tr>
                    <tr><td>
                            <br><br>
                    <% if(response.containsHeader("errore")){%>
                            <font color="red">Username già presente!</font>
                    </td></tr>
                    <tr><td>
                            <br>
                    <%}%>
                            <label for='nome' >Nome<font size="2" color="red">&nbsp;*</font></label>
                    </td><td>
                            <br><br>
                            <% if(response.containsHeader("nome")){
                            String nome = response.getHeader("nome");%>
                            <input type='text' name='nome' id='nome'  maxlength="50" value="<%= nome%>"/>
                            <%}else{%><input type='text' name='nome' id='nome'  maxlength="50"/><%}%>
                    </td></tr>
                    <tr><td>
                            <label for='cognome' >Cognome<font size="2" color="red">&nbsp;*</font></label>
                    </td><td>
                            <% if(response.containsHeader("cognome")){
                            String cognome = response.getHeader("cognome");%>
                            <input type='text' name='cognome' id='cognome'  maxlength="50" value="<%= cognome%>"/>
                            <%}else{%><input type='text' name='cognome' id='cognome'  maxlength="50"/><%}%>
                    </td></tr>
                    <tr><td>
                            <label for='telefono' >Telefono</label>
                    </td><td>
                            <% if(response.containsHeader("telefono")){
                            String telefono = response.getHeader("telefono");%>
                            <input type='text' name='telefono' id='telefono'  maxlength="50" value="<%= telefono%>"/>
                            <%}else{%><input type='text' name='telefono' id='telefono'  maxlength="50"/><%}%>
                    </td></tr>
                    <tr><td>
                            <label for='indirizzo' >Indirizzo</label>
                    </td><td>
                            <% if(response.containsHeader("indirizzo")){
                            String indirizzo = response.getHeader("indirizzo");%>
                            <input type='text' name='indirizzo' id='indirizzo'  maxlength="50" value="<%= indirizzo%>"/>
                            <%}else{%><input type='text' name='indirizzo' id='indirizzo'  maxlength="50"/><%}%>
                    </td></tr>
                    <tr><td>
                            <label for='email' >Email<font size="2" color="red">&nbsp;*</font></label>
                    </td><td>
                            <% if(response.containsHeader("email")){
                            String email = response.getHeader("email");%>
                            <input type='text' name='email' id='email'  maxlength="50" value="<%= email%>"/>
                            <%}else{%><input type='text' name='email' id='email'  maxlength="50"/><%}%>
                    </td></tr>
                    <tr><td>
                            <label for='cemail' >Conferma Email<font size="2" color="red">&nbsp;*</font></label>
                    </td><td>
                            <input type='text' name='cemail' id='cemail' maxlength="50" />
                    </td></tr>
                    <tr><td>
                            <label for='username' >Username<font size="2" color="red">&nbsp;*</font></label>
                    </td><td>
                            <input type='text' name='username' id='username'  maxlength="50" />
                    </td></tr>
                    <tr><td>
                            <label for='password'>Password<font size="2" color="red">&nbsp;*</font></label>
                    </td><td>
                            <input type='password' name='password' id='password' maxlength="50" />
                    </td></tr>
                    <tr><td>
                            <label for='cpassword' >Conferma Password<font size="2" color="red">&nbsp;*</font></label>
                    </td><td>
                            <input type='password' name='cpassword' id='cpassword' maxlength="50" />
                    </td></tr>
                    <tr><td></td><td>
                            <label><font size="2" color="red">*campi obbligatori</font></label>
                    </td></tr> 
                    <tr><td>
                            <br>
                            <input type='hidden' name='hidden' value='registra' /> 
                            <input type='submit' name='submit' value='Submit' />
                    </td></tr>
                </table>
                </form>
            </div>
      </div>
    </body>
</html>
